<?php


namespace app\api\controller\v1;


use app\adminapi\controller\AuthController;
use app\services\office\OfficeDatumService;
use think\facade\App;

class Classdatum extends AuthController
{
    public function __construct(App $app,OfficeDatumService  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }
    /*
     * 获取课程资料
     */
    public function index(){
        $where = $this->request->postMore([
            ['id',''],
        ]);
        return app()->make('json')->successful($this->services->getDatum($where));
    }

}